package com.qixiaobao.system.service.impl;

import com.qixiaobao.system.domain.InsureEmail;
import com.qixiaobao.system.mapper.InsureEmailMapper;
import com.qixiaobao.system.service.IInsureEmailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description 投保增减员推送邮件 业务层处理
 * @Author yangxm
 * @Date 2025/6/17 17:13
 */
@Service
public class InsureEmailServiceImpl implements IInsureEmailService {

    @Autowired
    private InsureEmailMapper insureEmailMapper;
    /**
     * 根据投保单ID查询投保推送邮件
     *
     * @param insureId 投保单ID
     * @return 投保推送邮件
     */
    @Override
    public InsureEmail selectInsureEmailByInsureId(Long insureId) {
        return insureEmailMapper.selectInsureEmailByInsureId(insureId);
    }

    /**
     * 根据增减员ID查询增减员推送邮件
     *
     * @param addminusId 增减员ID
     * @return 增减员推送邮件
     */
    @Override
    public InsureEmail selectInsureEmailByAddminusId(Long addminusId) {
        return insureEmailMapper.selectInsureEmailByAddminusId(addminusId);
    }
}
